package com.ning.parking.service.impl;

import cn.hutool.extra.spring.SpringUtil;
import com.ning.parking.domain.ParkingLotMonthlyApply;
import com.ning.parking.domain.dto.ParkingLotMonthlyApplyCarDTO;
import com.ning.parking.domain.dto.ParkingLotMonthlyApplyProveDTO;
import com.ning.parking.service.ParkingLotMonthlyApplyService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author ChenN
 * @Date 2025/4/22 11:28
 * @Version 0.0.1
 **/
@Service
public class ParkingLotMonthlyApplyAuditRecordProveService {
    public void saveMonthlyProve(Long monthlyId, Object o, List<ParkingLotMonthlyApplyProveDTO> baseProveList, List<ParkingLotMonthlyApplyCarDTO> applyCarList) {
        ParkingLotMonthlyApplyService monthlyApplyProveService = SpringUtil.getBean(ParkingLotMonthlyApplyService.class);
        ParkingLotMonthlyApply byId = monthlyApplyProveService.getById(monthlyId);
        byId.setMonthlyRuleId(monthlyId);
        monthlyApplyProveService.updateById(byId);
    }
}
